package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.PickingStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 领料明细表
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "PickingRecord对象", description = "领料明细表")
public class PickingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "原料id")
    @TableField("materialId")
    private Long materialId;

    @ApiModelProperty(value = "原料编码")
    @TableField("materialCode")
    private String materialCode;

    @ApiModelProperty(value = "名称")
    @TableField("materialName")
    private String materialName;

    @ApiModelProperty(value = "领料单id")
    @TableField("pickingId")
    private Long pickingId;

    @ApiModelProperty(value = "领料部门id")
    @TableField("deptId")
    private Long deptId;

    @ApiModelProperty(value = "部门名称")
    @TableField("deptName")
    private String deptName;

    @ApiModelProperty(value = "领料人id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "领料数量")
    @TableField("size")
    private int size;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private PickingStatus status;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
